package com.orilore.gb.biz;

import java.sql.Connection;
import java.util.List;

import com.orilore.gb.dao.XDepartDao;
import com.orilore.gb.entity.XDepart;
import com.orilore.gb.util.ConnFactory;

public class XDepartBiz {
	
	private  XDepartDao dao = new XDepartDao();
	
	
	
	public List<XDepart>  findAllXDepart(){
		
		
		   List<XDepart> list = null;
		   
		   try {
			Connection conn = ConnFactory.getConnection();
			
			
			list = dao.selectAllXDepart(conn);
			
			
			ConnFactory.closeConnection(conn);
			
			
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		   
		   
		   
		   
		   
		   
		   
		   return list;
		
		
		
		
	}
	
	

}
